﻿<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Width="480"
      Height="80"
      Background="{StaticResource PhoneBackgroundBrush}">
    <Border BorderBrush="{StaticResource PhoneAccentBrush}"
            BorderThickness="1">
        <Grid>
            <Grid.Triggers>

                <EventTrigger RoutedEvent="Grid.Loaded">

                    <BeginStoryboard>

                        <Storyboard AutoReverse="True"
                                    RepeatBehavior="Forever">
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                           Storyboard.TargetName="One">
                                <EasingDoubleKeyFrame KeyTime="0"
                                                      Value="1" />
                                <EasingDoubleKeyFrame KeyTime="0:0:2"
                                                      Value="1" />
                                <EasingDoubleKeyFrame KeyTime="0:0:3"
                                                      Value="0" />
                                <EasingDoubleKeyFrame KeyTime="0:0:5"
                                                      Value="0" />
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                           Storyboard.TargetName="Two">
                                <EasingDoubleKeyFrame KeyTime="0"
                                                      Value="0" />
                                <EasingDoubleKeyFrame KeyTime="0:0:2"
                                                      Value="0" />
                                <EasingDoubleKeyFrame KeyTime="0:0:3"
                                                      Value="1" />
                                <EasingDoubleKeyFrame KeyTime="0:0:5"
                                                      Value="1" />
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>

                    </BeginStoryboard>

                </EventTrigger>

            </Grid.Triggers>
            <Grid x:Name="One">
                <TextBlock Text="WP Unified Ad"
                           Foreground="{StaticResource PhoneAccentBrush}"
                           Margin="0"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           FontSize="35" />
            </Grid>
            <Grid x:Name="Two"
                  Opacity="0">
                <TextBlock Text="by Mark Monster"
                           Foreground="{StaticResource PhoneAccentBrush}"
                           Margin="0"
                           VerticalAlignment="Center"
                           HorizontalAlignment="Center"
                           FontSize="35" />
            </Grid>
            <HyperlinkButton NavigateUri="http://wpunifiedad.codeplex.com"
                             HorizontalAlignment="Stretch"
                             VerticalAlignment="Stretch" />
        </Grid>
    </Border>
</Grid>